package main.gui;

import java.util.List;

import javax.swing.JList;

import main.gui.comp.JListAdv;

import com.google.common.collect.Multiset.Entry;

public class App {
  private final JListAdv<Entry<String>> current = new JListAdv<Entry<String>>();
  private final JListAdv<Entry<String>> exclude = new JListAdv<Entry<String>>();

  public void setCurrentData(List<Entry<String>> currentData) {
    current.setData(currentData);
  }

  public void setExcludeData(List<Entry<String>> excludeData) {
    exclude.setData(excludeData);
    refreshCurrent();
  }

  private void refreshCurrent() {
    current.removeAll(exclude.getData());
  }

  public JList getCurrentView() {
    return current.getView();
  }

  public JList getExcludeView() {
    return exclude.getView();
  }

  public List<Entry<String>> getCurrentData() {
    return current.getData();
  }

  public List<Entry<String>> getExcludeData() {
    return exclude.getData();
  }
}